/**
 * @(#)WeiboUser.java 2017年2月21日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.domian.channel;

import org.jsbd.boss.bto.AppInfo;
import org.jsbd.boss.domian.DMClientInfo;

import com.alibaba.fastjson.JSONObject;

/**
 * 
 * 陌陌用户
 * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
 * @version 1.0.0
 */
public class MomoUser extends DMClientInfo {
	/**
	 * serialVersionUID TODO 请描述这个变量的含义
	 */
	private static final long serialVersionUID = -2744205204397381481L;
	private String userName;
	private String password;
	private String rd;
	private String mark;
	
	private String sdkVersion;
	private String radioVersion;
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}

	public String getRd() {
		return rd;
	}

	public void setRd(String rd) {
		this.rd = rd;
	}

	public String getSdkVersion() {
		return sdkVersion;
	}

	public void setSdkVersion(String sdkVersion) {
		this.sdkVersion = sdkVersion;
	}
	
	public String getRadioVersion() {
		return radioVersion;
	}

	public void setRadioVersion(String radioVersion) {
		this.radioVersion = radioVersion;
	}

	@Override
	public String toString() {
		JSONObject paramMap = new JSONObject();
		paramMap.put("userName", getUserName());
		paramMap.put("password", getPassword());
		paramMap.put("rd", getRd());
		
		paramMap.put("ro.product.model", getHstype());
		paramMap.put("ro.product.brand", getHsman());
		paramMap.put("ro.product.name", getProductName());
		paramMap.put("ro.product.device", getProductDevice());
		paramMap.put("ro.product.manufacturer", getHsman());
		paramMap.put("ro.product.board", getBoard());
		paramMap.put("mark", getMark());
		paramMap.put("density", getDensity());
		paramMap.put("widthPixels", getScreenWidth());
		paramMap.put("heightPixels", getScreenHeight());
		paramMap.put("imsi", getImsi());
		paramMap.put("imei", getImei());
		paramMap.put("lac", getLac() + "");
		paramMap.put("cid", getCellId() + "");
		paramMap.put("ICCID", getIccid());
		paramMap.put("mac", getMac());
		String longitude = getLongitude() == null ? "0.00" : getLongitude();
		String latitude = getLatitude() == null ? "0.00" : getLatitude();
		paramMap.put("Longitude", longitude);
		paramMap.put("Latitude", latitude);
		paramMap.put("android_id", getAndroidId());
		paramMap.put("wifiInfo", getWifiInfo());
		paramMap.put("ro.serialno", getSerialno());
		paramMap.put("ro.build.version.release", getRelease());
		paramMap.put("ro.build.version.sdk", getBuildVersion());
		paramMap.put("phoneType", getPhoneType());
		AppInfo appinfo = new AppInfo();
		appinfo.setApp_name(getAppName());
		appinfo.setSystem_app_name(getSystemAppName());
		paramMap.put("province", getProvince());
		paramMap.put("cityid", getCity());
		paramMap.put("userAgent", getUserAgent());
		paramMap.put("systime", getSystime());
		paramMap.put("cpuName", getCpu());
		paramMap.put("cpuSerial", getCpuSerial());
		paramMap.put("kernelVer", getKernelVer());
		paramMap.put("networkExtraInfo", getNetworkExtraInfo());
		paramMap.put("taskType", getTaskType());
		paramMap.put("loginType", getLoginType());
		paramMap.put("userName", getUserName());
		paramMap.put("password", getPassword());
		paramMap.put("sd_id", getSdId());
		paramMap.put("networkOperator", getNetworkOperator());
		paramMap.put("simOperator", getSimOperatorName());
		paramMap.put("networkOperatorName", getNetworkOperatorName());
		paramMap.put("sdkSessionId", getSdkSessionId());
		paramMap.put("randomCode", getRandomCode());
		paramMap.put("mobile", getPhoneNum());
		paramMap.put("xdpi", getXdpi());
		paramMap.put("ydpi", getYdpi());
		paramMap.put("densityDpi", getDensityDpi());
		paramMap.put("currentDate", getCurrentDate());
		paramMap.put("networkType", getNetworkType());
		paramMap.put("userid", getId());
		paramMap.put("sdkUuid", getSdkUuid());
		paramMap.put("sensorInfo", getSensorInfo());
		paramMap.put("sdkVersion", getSdkVersion());
		paramMap.put("fakeColumn", getFakeColumn());
		paramMap.put("radioVersion", getRadioVersion());
		
		return paramMap.toJSONString();
	}

}
